package com.ljf.framework.password;

import com.ljf.framework.LjfManager;

/**
 * 说明：密码加密管理器
 *
 * @Auther: lijinfeng
 * @Date: 2024/4/10
 */
public class PasswordEncoderManager {
    /**
     * 加密
     * @param rawPassword
     * @return
     */
    public static String encode(CharSequence rawPassword) {
        return LjfManager.getPasswordEncoderService().encode(rawPassword);
    }
    /**
     * 密码是否一致
     * @param rawPassword
     * @param encodedPassword
     * @return
     */
    public static boolean matches(CharSequence rawPassword, String encodedPassword) {
        return LjfManager.getPasswordEncoderService().matches(rawPassword,encodedPassword);
    }
}
